package com.supplychainapi.domain.address;

import javax.persistence.Table;
import java.util.List;

@Table(name = "tbaddr")
public class Address {
    private Integer value;
    private String label;
    private Integer pid;
    private Short level;
    private List<Address> children;

    public Integer getValue() {
        return value;
    }

    public Address setValue(Integer value) {
        this.value = value;
        return this;
    }

    public String getLabel() {
        return label;
    }

    public Address setLabel(String label) {
        this.label = label;
        return this;
    }

    public Integer getPid() {
        return pid;
    }

    public Address setPid(Integer pid) {
        this.pid = pid;
        return this;
    }

    public Short getLevel() {
        return level;
    }

    public Address setLevel(Short level) {
        this.level = level;
        return this;
    }

    public List<Address> getChildren() {
        return children;
    }

    public Address setChildren(List<Address> children) {
        this.children = children;
        return this;
    }
}
